import React, { PureComponent } from 'react'
import { connect } from 'react-redux'
import NiceItem from './NiceItem/NiceItem'
import recordAction from "../../../../redux/action/recordAction";
class NiceList extends PureComponent {
  recordDes = (el) => {
    this.props.recordAction('record', el)
  }
  render() {
    let { nicelist } = this.props
    return (
      <>
        <div className="sss">
          <p className="mzi3">最受好评电影</p>
            <NiceItem nicelist={nicelist} recordDes={this.recordDes} />
        </div >
      </ >
    )
  }
}
export default connect(
  state => ({}),
  {
    recordAction
  }
)(NiceList)
